cmake_minimum_required (VERSION 3.8)

#project(pugixml)

include (../options.cmake)

IF(MSVC)
    add_compile_options("$<$<CXX_COMPILER_ID:MSVC>:/source-charset:utf-8>")
    add_compile_options("$<$<C_COMPILER_ID:MSVC>:/source-charset:utf-8>")
ENDIF()


file(GLOB pugixml_srcs "*.c*")
add_library(pugixml_objs OBJECT ${pugixml_srcs})
add_library(pugixml STATIC $<TARGET_OBJECTS:pugixml_objs>)
